<?php
session_start();
session_destroy();
if (isset($_COOKIE)) {
    foreach ($_COOKIE as $key => $value) {
        setcookie($key, '', 1, '/');
        setcookie($key, '', 1, '/'); 
    }
}
header("location:index.php");